package P68;

public class test2 {
    public static void main(String[] args) {
        for (int i = 0; i < 30; i++) {
            if(i==15){
                try{
                    Thread.currentThread().sleep(2000);
                }catch(Exception e){
                    System.out.println(e);
                }
            }
            System.out.println("主线程main也可以被休眠");
        }
    }
}
